<?php
$ac1="100001";
$pw1="f65a815b3292e7d4ad12e4d3097d2478"; //票付通账号跟密码
// $ac1="519844";
// $pw1="36e14e47435bfc8bead4e472be90e26b";

$s1=new SoapClient("http://121.43.119.39/open/openService/MXSE.wsdl",array('encoding' =>'UTF-8','cache_wsdl' => 0));//票付通接口地址

//查询景区列表
// $txt = $s1->__soapCall("Get_ScenicSpot_List",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>10,"in2"=>""));
// $arr =simplexml_load_string($txt);
// print_r($txt);
// exit; 
// 查询景区详细信息
// print_r($s1->__soapCall("Get_ScenicSpot_Info",array("ac"=>"100019","pw"=>"jjl4yk11f82ce6c0f33a5c003f2fec56","in0"=>6420)));
// exit; 
//门票列表
// print_r($s1->__soapCall("Get_Ticket_List",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>4891,"in1"=>""))); 
// exit;
//动态价格、库存上限获取
// print_r($s1->__soapCall("Dynamic_Price_And_Storage",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>22854,"in1"=>"2015-10-13","in2"=>1,"in3"=>1,"in4"=>1)));

//提交订单
// print_r($s1->__soapCall("PFT_Order_Submit",array(
		// "ac"=>$ac1, //账号
		// "pw"=>$pw1, //密码
		// "in0"=>12202, //景区id
		// "in1"=>25766,//门票id
		// "in2"=>"",//远端订单号
		// "in3"=>100, //门票价格
		// "in4"=>1,//数量
		// "in5"=>"2015-12-29",//游玩日期
		// "in6"=>"pzp", //客户姓名
		// "in7"=>"15959110796",//客户手机号
		// "in8"=>"", //联系人手机号
		// "in9"=>1,//是否发送短信（0发送1不发送）
		// "in10"=>2,//扣款方式（0使用账户余额2使用供应商处余额4现场支付
		// "in11"=>0,//下单方式（0正常下单1手机用户下单）
		// "in12"=>"",//集合地点
		// "in13"=>"",//团号
		// "in14"=>0,//联票ID
		// "in15"=>0,//套票ID
		// "in16"=>113,//供应商id
		// "in17"=>"350321199123456789" //身份证
		// )
// ));

// 订单查询
// print_r($s1->__soapCall("Order_Globle_Search",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>"","in1"=>"","in2"=>"","in3"=>"","in4"=>"","in5"=>"","in6"=>"","in7"=>"","in8"=>"","in9"=>"","in10"=>"","in11"=>"","in12"=>"151203000161","in13"=>"","in14"=>"","in15"=>"","in16"=>"","in17"=>"","in18"=>"","in19"=>1,"in20"=>"","in21"=>"","in22"=>"0","in23"=>"","in24"=>"","in25"=>"","in26"=>1))); 

//订单短信发送、重发接口
// print_r($s1->__soapCall("reSend_SMS_Global_PL",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>'2814777')));

//修改、取消订单
// print_r($s1->__soapCall("Order_Change_Pro",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>'2821818',"in1"=>0,"in2"=>''))); 

//凭证码查看
// print_r($s1->__soapCall("Terminal_Code_Verify",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>"2814777")));

//资金余额查看
// print_r($s1->__soapCall("PFT_Member_Fund",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>1,"in1"=>27491)));

// print_r($s1->__soapCall("PFT_Member_Relationship",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>2)));

?>29453,//门票id
		 "in2"=>"",//远端订单号
		 "in3"=>100, //门票价格
		 "in4"=>$num,//数量
		 "in5"=>"2015-01-02",//游玩日期
		 "in6"=>$name, //客户姓名
		 "in7"=>$tel,//客户手机号
		 "in8"=>"", //联系人手机号
		 "in9"=>1,//是否发送短信（0发送1不发送）
		 "in10"=>2,//扣款方式（0使用账户余额2使用供应商处余额4现场支付
		 "in11"=>0,//下单方式（0正常下单1手机用户下单）
		 "in12"=>"",//集合地点
		 "in13"=>"",//团号
		 "in14"=>0,//联票ID
		 "in15"=>0,//套票ID
		 "in16"=>62379,//供应商id
		 "in17"=>"350321199123456789" //身份证
		 )
 ));
}

// 订单查询
// print_r($s1->__soapCall("Order_Globle_Search",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>"616007","in1"=>"","in2"=>"","in3"=>"","in4"=>"","in5"=>"","in6"=>"","in7"=>"","in8"=>"","in9"=>"","in10"=>"","in11"=>"","in12"=>"","in13"=>"","in14"=>"","in15"=>"","in16"=>"","in17"=>"","in18"=>"","in19"=>1,"in20"=>"","in21"=>"","in22"=>"0","in23"=>"","in24"=>"","in25"=>"","in26"=>1))); 

//订单短信发送、重发接口
// print_r($s1->__soapCall("reSend_SMS_Global_PL",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>'2814777')));

//修改、取消订单
//print_r($s1->__soapCall("Order_Change_Pro",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>'2911567',"in1"=>0,"in2"=>'')));

//凭证码查看
// print_r($s1->__soapCall("Terminal_Code_Verify",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>"2814777")));

//资金余额查看
// print_r($s1->__soapCall("PFT_Member_Fund",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>1,"in1"=>27491)));

// print_r($s1->__soapCall("PFT_Member_Relationship",array("ac"=>$ac1,"pw"=>$pw1,"in0"=>2)));

?>